import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Contextmenu from 'vue-contextmenujs'
import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';
import '@/style/index.less'
import * as echarts from "echarts"
import http from './http'
import axios from 'axios';
import "./views//messagework/normalStyle.less"

//将http放在vue原型上，这样就可以在任意界面使用this.http访问了
Vue.prototype.$http = http
Vue.prototype.$httpUrl = 'http://81.68.222.174:3000'
Vue.prototype.$upload = 'localhost:3000/v1/web/api/yunyiUpload/put-file'
import htmlToPdf from '@/libs/htmlToPdf'
Vue.use(htmlToPdf) 
window.axios = axios;

Vue.prototype.$echarts = echarts;
Vue.config.productionTip = false

Vue.use(Contextmenu);
Vue.use(ViewUI);
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
